﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;
using MODELS;
using ENTITY;

namespace CONTROLLER
{
    public class ctrls_Bai
    {
        private MOD_Bai obj_Bai;
        public ctrls_Bai()
        {
            obj_Bai = new MOD_Bai();
        }
        public DataTable Bai_SelectSQL(string strSQL)
        {
            return obj_Bai.select_STR(strSQL);
        }
        public DataTable Bai_SelectALL()
        {
            return obj_Bai.SelectAll();
        }

        public int Bai_Insert(EN_Bai obj_en)
        {
            return obj_Bai.Insert(obj_en);
        }

        public int Bai_Update(EN_Bai obj_en)
        {
            return obj_Bai.Update(obj_en);
        }

        public int Bai_Delete(EN_Bai obj_en)
        {
            return obj_Bai.Delete(obj_en);
        }
    }
}
